
from serial import Serial
import serial
class Serial_Util():
    """
    docstring
    """
    def __init__(self):
        """
        docstring
        """
        self.state = False
        self.ser = Serial()
    
    def open(self, port, baudrate):
        """
        打开串口
        """
        self.ser = Serial(port, baudrate, bytesize=serial.EIGHTBITS, 
                            parity=serial.paritybit_NONE, stopbits=1, timeout=1)


if __name__ == '__main__':
    pass
